//
//  AddTitlePageTableViewCell.m
//  MIDI
//
//  Created by 王禹丞 on 15/10/20.
//  Copyright (c) 2015年 QXSX. All rights reserved.
//

#import "AddTitlePageTableViewCell.h"

@interface AddTitlePageTableViewCell()

@end


@implementation AddTitlePageTableViewCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    
    static NSString *ID = @"AddTitlePageTableViewCell";
    AddTitlePageTableViewCell  *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"AddTitlePageTableViewCell" owner:nil options:nil]firstObject] ;
        
    }
    
    [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    
    return cell;
}


- (void)awakeFromNib{


    [self.addBtn addTarget:self action:@selector(addBtn_Click:) forControlEvents:UIControlEventTouchUpInside];

}

- (void)addBtn_Click:(UIButton *)sender{

    if ([self.delegate respondsToSelector:@selector(uploadTitlePage:addImageBtn:)]) {
        
        [self.delegate uploadTitlePage:self addImageBtn:sender];
        
    }

}

@end

